
using System;
using QdbUnit;
using QdbUnit.Extensions;
using Qdb.Tests.Common.Exceptions;

namespace Qdb.Tests.Common.Exceptions
{
	public class BackupCSExceptionTestCase : QdbClientServerTestCase
	{
		public static void Main(string[] args)
		{
			new BackupCSExceptionTestCase().RunAll();
		}

		public virtual void Test()
		{
			Assert.Expect(typeof(NotSupportedException), new _ICodeBlock_15(this));
		}

		private sealed class _ICodeBlock_15 : ICodeBlock
		{
			public _ICodeBlock_15(BackupCSExceptionTestCase _enclosing)
			{
				this._enclosing = _enclosing;
			}

			/// <exception cref="System.Exception"></exception>
			public void Run()
			{
				this._enclosing.Db().Backup(string.Empty);
			}

			private readonly BackupCSExceptionTestCase _enclosing;
		}
	}
}
